<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/power_manager.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">power_manager.h 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;SWM341.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
power_manager.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="power__manager_8h__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8h" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8h" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8h">
<area shape="rect" title=" " alt="" coords="5,5,229,75"/>
<area shape="rect" title=" " alt="" coords="74,123,161,148"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="power__manager_8h__dep__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8hdep" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8hdep" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8hdep">
<area shape="rect" title=" " alt="" coords="5,5,229,75"/>
<area shape="rect" href="power__manager_8c.html" title=" " alt="" coords="5,123,229,192"/>
</map>
</div>
</div>
<p><a href="power__manager_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:ad68f0f1a7d5e0cc311f261c21716f8c1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a> { <a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1aeb339438b5c866323b92ac8f8c71564c">PM_MODE_NORMAL</a> = 0
, <a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a7f72cb1eff8d0a943b7029b3e93c4e67">PM_MODE_SLEEP</a>
, <a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a0558d994d2c989e32c28ba7be299c026">PM_MODE_STOP</a>
 }</td></tr>
<tr class="memdesc:ad68f0f1a7d5e0cc311f261c21716f8c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">电源模式  <a href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">更多...</a><br /></td></tr>
<tr class="separator:ad68f0f1a7d5e0cc311f261c21716f8c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aa125d952f6750a2c86b46ecfc611b399"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8h.html#aa125d952f6750a2c86b46ecfc611b399">pm_request</a> (<a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a> mode)</td></tr>
<tr class="memdesc:aa125d952f6750a2c86b46ecfc611b399"><td class="mdescLeft">&#160;</td><td class="mdescRight">请求进入某种电源模式  <a href="power__manager_8h.html#aa125d952f6750a2c86b46ecfc611b399">更多...</a><br /></td></tr>
<tr class="separator:aa125d952f6750a2c86b46ecfc611b399"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07250972b4737e676c66368d6b55a53f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8h.html#a07250972b4737e676c66368d6b55a53f">pm_register</a> (<a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a> mode, void(*request_cb)(void), void(*resume_cb)(void))</td></tr>
<tr class="memdesc:a07250972b4737e676c66368d6b55a53f"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册电源模式变化时的回调函数  <a href="power__manager_8h.html#a07250972b4737e676c66368d6b55a53f">更多...</a><br /></td></tr>
<tr class="separator:a07250972b4737e676c66368d6b55a53f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">枚举类型说明</h2>
<a id="ad68f0f1a7d5e0cc311f261c21716f8c1" name="ad68f0f1a7d5e0cc311f261c21716f8c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad68f0f1a7d5e0cc311f261c21716f8c1">&#9670;&#160;</a></span>pm_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>电源模式 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="ad68f0f1a7d5e0cc311f261c21716f8c1aeb339438b5c866323b92ac8f8c71564c" name="ad68f0f1a7d5e0cc311f261c21716f8c1aeb339438b5c866323b92ac8f8c71564c"></a>PM_MODE_NORMAL&#160;</td><td class="fielddoc"><p >正常活跃模式, 不锁功耗墙 </p>
</td></tr>
<tr><td class="fieldname"><a id="ad68f0f1a7d5e0cc311f261c21716f8c1a7f72cb1eff8d0a943b7029b3e93c4e67" name="ad68f0f1a7d5e0cc311f261c21716f8c1a7f72cb1eff8d0a943b7029b3e93c4e67"></a>PM_MODE_SLEEP&#160;</td><td class="fielddoc"><p >浅度睡眠模式, 一级低功耗 </p>
</td></tr>
<tr><td class="fieldname"><a id="ad68f0f1a7d5e0cc311f261c21716f8c1a0558d994d2c989e32c28ba7be299c026" name="ad68f0f1a7d5e0cc311f261c21716f8c1a0558d994d2c989e32c28ba7be299c026"></a>PM_MODE_STOP&#160;</td><td class="fielddoc"><p >深度睡眠模式, 二级低功耗 </p>
</td></tr>
</table>

<p class="definition">在文件 <a class="el" href="power__manager_8h_source.html">power_manager.h</a> 第 <a class="el" href="power__manager_8h_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="aa125d952f6750a2c86b46ecfc611b399" name="aa125d952f6750a2c86b46ecfc611b399"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa125d952f6750a2c86b46ecfc611b399">&#9670;&#160;</a></span>pm_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pm_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>请求进入某种电源模式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>: 电源模式 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00067">67</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="power__manager_8h_aa125d952f6750a2c86b46ecfc611b399_cgraph.png" border="0" usemap="#apower__manager_8h_aa125d952f6750a2c86b46ecfc611b399_cgraph" alt=""/></div>
<map name="apower__manager_8h_aa125d952f6750a2c86b46ecfc611b399_cgraph" id="apower__manager_8h_aa125d952f6750a2c86b46ecfc611b399_cgraph">
<area shape="rect" title="请求进入某种电源模式" alt="" coords="5,80,96,105"/>
<area shape="rect" href="dev__sleep__stop_8c.html#a4d4c631bc1d45f13302e7f874c8337eb" title="进入浅睡眠模式, 被唤醒后会退出该函数恢复程序继续执行, 外设工作状态以及 RAM 数据将会保持." alt="" coords="144,55,221,80"/>
<area shape="rect" href="dev__sleep__stop_8c.html#a5b06de9b1a4503a9890c7ae85f041c58" title="进入停止模式, 芯片完全停止工作" alt="" coords="147,104,218,129"/>
<area shape="rect" href="dev__rtc_8c.html#aedd83f0c9b0f418ce1097807c1b5d186" title="RTC 初始化" alt="" coords="306,5,367,31"/>
<area shape="rect" href="dev__sleep__stop_8c.html#af1f29b7ae72111910d2e931d0b9d376e" title="设置 USB 模块低功耗模式" alt="" coords="269,55,404,80"/>
<area shape="rect" href="dev__sleep__stop_8c.html#a2369e14249cb4d6ef0b9be70ea030440" title="关闭所有引脚的上拉和下拉电阻, 以及不需要唤醒功能的 IO 输入使能" alt="" coords="291,104,382,129"/>
</map>
</div>

</div>
</div>
<a id="a07250972b4737e676c66368d6b55a53f" name="a07250972b4737e676c66368d6b55a53f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07250972b4737e676c66368d6b55a53f">&#9670;&#160;</a></span>pm_register()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pm_register </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(void)&#160;</td>
          <td class="paramname"><em>request_cb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(void)&#160;</td>
          <td class="paramname"><em>resume_cb</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注册电源模式变化时的回调函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>: 电源模式 </td></tr>
    <tr><td class="paramname">request_cb</td><td>: 请求进入电源模式的回调 </td></tr>
    <tr><td class="paramname">resume_cb</td><td>: 释放退出电源模式的回调 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>用户接口预留, 若没有注册, 则按本模块自带的默认实现, 若同一模式多次注册, 以最后一次注册传入参数为准. </dd></dl>

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00097">97</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
